<template>
  <div class="content">
    <!-- 购物车列表开始 -->
    <ul class="cart-list">
      <li>
        <div class="cartlist-left">
          <input type="checkbox" />
        </div>
        <div class="cartlist-center">
          <span class="list-image"><img src="https://img.alicdn.com/imgextra/i1/3527212490/O1CN01xU4mme1UGSgohavzu_!!0-item_pic.jpg_430x430q90.jpg" alt=""></span>
          <div class="list-dec">
            <div class="dec-name">阿玛尼黑管唇釉</div>
            <div class="dec-color">色号：405</div>
            <div class="dec-num">
              <span class="iconfont icon-jianhao"></span>
              <p>1</p>
              <span class="iconfont icon-iconfonticon02"></span>
            </div>
          </div>
        </div>
        <div class="cartlist-right">￥66</div>
      </li>
    </ul>
    <!-- 购物车列表结束 -->
    <!-- 商品合计开始 -->
    <div class="pro-total">
      <p>商品合计</p>
      <span>￥666</span>
    </div>
    <!-- 商品合计结束 -->
    <!-- 运费开始 -->
    <div class="carrymoney">
      <p>运费</p>
      <span>￥10</span>
    </div>
    <!-- 运费结束 -->
    <!-- 全选部分-开始 -->
    <div class="check-all">
      <div class="all-left">
        <input type="checkbox"/>
        <span>全选</span>
      </div>
      <div class="all-center">合计：<span>￥1266</span></div>
      <div class="all-right">
        <router-link to='./order' tag="button" class="btn">去结算</router-link>
      </div>
    </div>
    <!-- 全选部分-结束 -->
  </div>
</template>
<script>
export default {
}
</script>
<style lang="scss">
@import '@/lib/reset.scss';
// 购物车列表开始
.cart-list {
  width: 100%;
  height: auto;
  background-color: #eee;
  li {
    width: 100%;
    height: 1.2rem;
    border-bottom: 0.01rem solid #ccc;
    padding: 0.1rem;
    .cartlist-left {
      width: 0.2rem;
      height: 1rem;
      line-height: 1rem;
      text-align: center;
      float: left;
    }
    .cartlist-center {
      width: 2.8rem;
      height: 1rem;
      margin-left: 0.2rem;
      float: left;
      display: flex;
      .list-image {
        display: block;
        width: 0.7rem;
        height: 0.7rem;
        background: #ccc;
        margin-top: 0.15rem;
        float: left;
        img {
          @include rect(0.7rem, 0.7rem)
        }
      }
      .list-dec {
        width: 2rem;
        height: 0.8rem;
        float: left;
        display: flex;
        margin-top: 0.1rem;
        margin-left: 0.1rem;
        flex-direction: column;
        justify-content: space-around;
        .dec-name {
          width: 2rem;
          height: 0.3rem;
          font-size: 0.16rem;
          line-height: 0.3rem;
        }
        .dec-color {
          width: 2rem;
          height: 0.2rem;
          line-height: 0.2rem;
          font-size: 0.14rem;
          color: #101010;
        }
        .dec-num {
          width: 0.8rem;
          height: 0.2rem;
          line-height: 0.2rem;
          border: 0.01rem solid #ccc;
          display: flex;
          justify-content: center;
          align-items: center;
          .iconfont {
            display: block;
            width: 0.25rem;
            height: 0.2rem;
            line-height: 0.2rem;
            text-align: center;
          }
          p {
            width: 0.3rem;
            height: 0.2rem;
            line-height: 0.2rem;
            text-align: center;
            border-left: 0.01rem solid #ccc;
            border-right: 0.01rem solid #ccc;
          }
        }
      }
    }
    .cartlist-right {
      width: 0.35rem;
      height: 1rem;
      float: right;
      line-height: 1.6rem
    }
  }
}
// 购物车列表结束
// 商品合计开始
.pro-total {
  width: 100%;
  height: 0.5rem;
  border-bottom: 0.01rem solid #ccc;
  padding: 0.1rem;
  p {
    width: 2rem;
    height: 0.3rem;
    line-height: 0.3rem;
    font-size: 0.16rem;
    float: left;
  }
  span {
    display: block;
    width: 0.5rem;
    height: 0.3rem;
    line-height: 0.3rem;
    float: right
  }
}
// 商品合计结束
// 运费开始
.carrymoney {
  width: 100%;
  height: 0.5rem;
  padding: 0.1rem;
  line-height: 0.5rem;
  p {
    width: 2rem;
    height: 0.3rem;
    line-height: 0.3rem;
    font-size: 0.16rem;
    float: left;
  }
  span {
    display: block;
    width: 0.5rem;
    height: 0.3rem;
    line-height: 0.3rem;
    float: right
  }

}
// 全选部分-开始
.check-all {
  width: 100%;
  height: 0.5rem;
  line-height: 0.5rem;
  position: fixed;
  bottom: 0.5rem;
  border-top: 0.01rem solid #ccc;
  padding: 0 0.1rem;
  .all-left {
    width: 0.6rem;
    height: 0.5rem;
    line-height: 0.5rem;
    text-align: center;
    float: left;
  }
  .all-center {
    width: 1rem;
    height: 0.5rem;
    line-height: 0.5rem;
    margin-left: 1.1rem;
    float: left;
  }
  .all-right {
    width: 0.8rem;
    height: 0.5rem;
    float: left;
    .btn {
      width: 0.95rem;
      height: 0.5rem;
      border: 0rem;
      background: #ccc;
      color: #000;
      font-size: 0.16rem;
    }
  }
}
</style>
